﻿using DFGK_WMS.Model.DTO;
using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.IRepository
{
    /// <summary>
    /// 库存汇总
    /// </summary>
    public interface ITInventorySummaryRepository : IBaseRepository<TMaterial>
    {
        /// <summary>
        /// 关键字查询
        /// </summary>
        /// <param name="totalCount"></param>
        /// <param name="keywords"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        List<TInventory> GetInventorySummary(out int totalCount,string ? keywords, int pageIndex, int pageSize);

        /// <summary>
        /// 库存汇总导出
        /// </summary>
        /// <returns></returns>
        List<TInventory> GetSummaryExcel();

        /// <summary>
        /// 获取物料分类
        /// </summary>
        /// <returns></returns>
        List<MaterialClassificationDTO> GetMaterialClassification();


        /// <summary>
        /// 根据ID查询物料信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        List<TMaterial> GetMaterialInformationById(int id);



        /// <summary>
        /// 获取物料总计
        /// </summary>
        /// <param name="MaterialId"></param>
        /// <returns></returns>
        int GetInventoryQty(int MaterialId);


    }
}
